package com.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商机产品关系表
 * </p>
 *
 * @author rick
 * @since 2022-12-13 11:23:15
 */
@Getter
@Setter
@TableName("wk_crm_business_product")
@ApiModel(value = "CrmBusinessProduct对象", description = "商机产品关系表")
public class CrmBusinessProduct implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "r_id", type = IdType.AUTO)
    private Integer rId;

    @ApiModelProperty("商机ID")
    @TableField("business_id")
    private Integer businessId;

    @ApiModelProperty("产品ID")
    @TableField("product_id")
    private Integer productId;

    @ApiModelProperty("产品单价")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty("销售价格")
    @TableField("sales_price")
    private BigDecimal salesPrice;

    @ApiModelProperty("数量")
    @TableField("num")
    private BigDecimal num;

    @ApiModelProperty("折扣")
    @TableField("discount")
    private Integer discount;

    @ApiModelProperty("小计（折扣后价格）")
    @TableField("subtotal")
    private BigDecimal subtotal;

    @ApiModelProperty("单位")
    @TableField("unit")
    private String unit;


}
